package com.three.productList.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.three.core.entity.ProductExamine;
import com.three.core.vo.R;
import com.three.productList.service.ProductExamineService;
import com.three.productList.vo.ExaminePassVo;
import com.three.productList.vo.ExamineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：li
 * @date ：Created in 2025/3/11 011 21:11
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/product/examine")
public class ProductExamineController {
    @Autowired
    private ProductExamineService productExamineService;
    @PostMapping("/select")
    public R<IPage<ProductExamine>> select(@RequestBody ExamineVo searchForm){
        return productExamineService.select(searchForm);
    }
    @PostMapping("/updateExamine")
    public R<ProductExamine> updateExamine(@RequestBody ExaminePassVo form){
        return productExamineService.updateExamine(form);
    }


}
